package com.zhou.org.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 批量移出组织结构关系
 * @author lang.zhou
 * @date 2022/8/24 9:59
 */
@Data
public class OrgRelationDelDto implements Serializable {
    /**
     * fromId
     */
    @NotNull
    @Positive
    private Integer pid;
    /**
     * toId
     */
    @NotEmpty(message = "组织结构不能为空")
    @Valid
    private List<Integer> orgIds;

}
